package com.sinochem.iot.rule.model;

import java.util.Date;

public class TriggerRule {
    /**
     * 
     */
    private Integer id;

    /**
     * 触发器Id
     */
    private Integer triId;

    /**
     * 规则查询语句
     */
    private String ruleSql;

    /**
     * 规则查询语句文本
     */
    private String ruleSqlText;

    /**
     * 字段
     */
    private String ruleField;

    /**
     * 查询范围选择产品
     */
    private Integer queryScopPro;

    /**
     * 查询范围选择设备
     */
    private String queryScopDev;

    /**
     * 查询条件
     */
    private String queryCondition;

    /**
     * 执行动作
     */
    private String actions;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     *
     * @mbggenerated
     */
    public TriggerRule(Integer id, Integer triId, String ruleSql, String ruleSqlText, String ruleField, Integer queryScopPro, String queryScopDev, String queryCondition, String actions, Date createTime, Date updateTime) {
        this.id = id;
        this.triId = triId;
        this.ruleSql = ruleSql;
        this.ruleSqlText = ruleSqlText;
        this.ruleField = ruleField;
        this.queryScopPro = queryScopPro;
        this.queryScopDev = queryScopDev;
        this.queryCondition = queryCondition;
        this.actions = actions;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     *
     * @mbggenerated
     */
    public TriggerRule() {
        super();
    }

    /**
     * 
     * @return id 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     * @param id 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 触发器Id
     * @return tri_id 触发器Id
     */
    public Integer getTriId() {
        return triId;
    }

    /**
     * 触发器Id
     * @param triId 触发器Id
     */
    public void setTriId(Integer triId) {
        this.triId = triId;
    }

    /**
     * 规则查询语句
     * @return rule_sql 规则查询语句
     */
    public String getRuleSql() {
        return ruleSql;
    }

    /**
     * 规则查询语句
     * @param ruleSql 规则查询语句
     */
    public void setRuleSql(String ruleSql) {
        this.ruleSql = ruleSql == null ? null : ruleSql.trim();
    }

    /**
     * 规则查询语句文本
     * @return rule_sql_text 规则查询语句文本
     */
    public String getRuleSqlText() {
        return ruleSqlText;
    }

    /**
     * 规则查询语句文本
     * @param ruleSqlText 规则查询语句文本
     */
    public void setRuleSqlText(String ruleSqlText) {
        this.ruleSqlText = ruleSqlText == null ? null : ruleSqlText.trim();
    }

    /**
     * 字段
     * @return rule_field 字段
     */
    public String getRuleField() {
        return ruleField;
    }

    /**
     * 字段
     * @param ruleField 字段
     */
    public void setRuleField(String ruleField) {
        this.ruleField = ruleField == null ? null : ruleField.trim();
    }

    /**
     * 查询范围选择产品
     * @return query_scop_pro 查询范围选择产品
     */
    public Integer getQueryScopPro() {
        return queryScopPro;
    }

    /**
     * 查询范围选择产品
     * @param queryScopPro 查询范围选择产品
     */
    public void setQueryScopPro(Integer queryScopPro) {
        this.queryScopPro = queryScopPro;
    }

    /**
     * 查询范围选择设备
     * @return query_scop_dev 查询范围选择设备
     */
    public String getQueryScopDev() {
        return queryScopDev;
    }

    /**
     * 查询范围选择设备
     * @param queryScopDev 查询范围选择设备
     */
    public void setQueryScopDev(String queryScopDev) {
        this.queryScopDev = queryScopDev == null ? null : queryScopDev.trim();
    }

    /**
     * 查询条件
     * @return query_condition 查询条件
     */
    public String getQueryCondition() {
        return queryCondition;
    }

    /**
     * 查询条件
     * @param queryCondition 查询条件
     */
    public void setQueryCondition(String queryCondition) {
        this.queryCondition = queryCondition == null ? null : queryCondition.trim();
    }

    /**
     * 执行动作
     * @return actions 执行动作
     */
    public String getActions() {
        return actions;
    }

    /**
     * 执行动作
     * @param actions 执行动作
     */
    public void setActions(String actions) {
        this.actions = actions == null ? null : actions.trim();
    }

    /**
     * 创建时间
     * @return create_time 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 修改时间
     * @return update_time 修改时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     * @param updateTime 修改时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}